package com.clever.springssm.service.impl;

import com.clever.springssm.entity.Product;
import com.clever.springssm.mapper.ProductMapper;
import com.clever.springssm.service.ProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ChenWang
 * @className ProductServiceImpl
 * @date 2020/10/30 10:51
 * @since JDK 1.8
 */
@Service
public class ProductServiceImpl implements ProductService {
    @Resource
    private ProductMapper productMapper;
    @Override
    public List<Product> findAll(){
        return productMapper.findAll();
    }
}
